package com.ruoyi.business.acc.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 账户对象 t_acc
 *
 * @author zengxiangjiang
 * @date 2022-03-15
 */
@Table(name = "t_acc")
public class Acc extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商户编号 */
    @Id
    @Column(name = "mer_id")
    private String merId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Column(name = "in_tm")
    private Date inTm;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Column(name = "mod_tm")
    private Date modTm;

    /** 版本 */
    @Excel(name = "版本")
    private Integer version;

    /** 可用金额 */
    @Excel(name = "可用金额")
    @Column(name = "available_amt")
    private BigDecimal availableAmt;

    /** 冻结金额 */
    @Excel(name = "冻结金额")
    @Column(name = "frozen_amt")
    private BigDecimal frozenAmt;

    /** 总金额 */
    @Excel(name = "总金额")
    @Column(name = "total_amt")
    private BigDecimal totalAmt;

    /** 待结算金额 */
    @Excel(name = "待结算金额")
    @Column(name = "unsettle_amt")
    private BigDecimal unsettleAmt;

    public void setMerId(String merId)
    {
        this.merId = merId;
    }

    public String getMerId()
    {
        return merId;
    }
    public void setInTm(Date inTm)
    {
        this.inTm = inTm;
    }

    public Date getInTm()
    {
        return inTm;
    }
    public void setModTm(Date modTm)
    {
        this.modTm = modTm;
    }

    public Date getModTm()
    {
        return modTm;
    }
    public void setVersion(Integer version)
    {
        this.version = version;
    }

    public Integer getVersion()
    {
        return version;
    }
    public void setAvailableAmt(BigDecimal availableAmt)
    {
        this.availableAmt = availableAmt;
    }

    public BigDecimal getAvailableAmt()
    {
        return availableAmt;
    }
    public void setFrozenAmt(BigDecimal frozenAmt)
    {
        this.frozenAmt = frozenAmt;
    }

    public BigDecimal getFrozenAmt()
    {
        return frozenAmt;
    }
    public void setTotalAmt(BigDecimal totalAmt)
    {
        this.totalAmt = totalAmt;
    }

    public BigDecimal getTotalAmt()
    {
        return totalAmt;
    }
    public void setUnsettleAmt(BigDecimal unsettleAmt)
    {
        this.unsettleAmt = unsettleAmt;
    }

    public BigDecimal getUnsettleAmt()
    {
        return unsettleAmt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("merId", getMerId())
            .append("inTm", getInTm())
            .append("modTm", getModTm())
            .append("version", getVersion())
            .append("availableAmt", getAvailableAmt())
            .append("frozenAmt", getFrozenAmt())
            .append("totalAmt", getTotalAmt())
            .append("unsettleAmt", getUnsettleAmt())
            .toString();
    }
}
